Skip to content

Restore backward-compatible default job key format#5317

Open
answndud wants to merge 1 commit intospring-projects:mainfrom
answndud:fix/job-key-compatibility-5283
Open

Restore backward-compatible default job key format#5317
answndud wants to merge 1 commit intospring-projects:mainfrom
answndud:fix/job-key-compatibility-5283

Conversation

@answndud
Copy link

@answndud answndud commented Mar 5, 2026

Summary

  • restore the default job key serialization format used before the JobParameter refactor
  • avoid relying on JobParameter.toString for key generation to keep key values stable
  • add a regression test in DefaultJobKeyGeneratorTests for backward-compatible key generation
  • add a JDBC DAO regression test to verify lookup of existing job instances created with the legacy key format

Testing

  • ./mvnw -pl spring-batch-core -Dtest=DefaultJobKeyGeneratorTests,JdbcJobInstanceDaoTests test

Fixes #5283

Signed-off-by: MJY <jmoon0227@gmail.com>
@answndud answndud force-pushed the fix/job-key-compatibility-5283 branch from c7a62fe to 660c95f Compare March 13, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spring Batch 6 breaks compatibility with existing job keys

1 participant